package com.bosssoft.cart.mapper;

import com.bosssoft.cart.pojo.Books;
import com.bosssoft.cart.pojo.Books;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface BookMapper {

    int addBook(Books books);

    int deleteBookById(@Param("bookID") int id);

    int uodateBook(Books books);

    Books  queryBookById(@Param("bookID") int bookID);

    List<Books> queryAllBook();

    List<Books> queryBookByName(@Param("bookName") String bookName);
}
